<?php

/**
 * Name: 设置控制器
 * User: Silent
 * Date: 2025-09-20
 * Time: 22:47:55
 */

namespace App\Http\Controllers\V1\Resources\Config;

use App\Http\Controllers\Controller;
use App\Repositories\Config\ConfigRepository;
use App\Services\Config\ConfigService;

class ConfigController extends Controller
{
    protected $service;

    protected $repository;

    public function __construct(ConfigRepository $repository)
    {
        $this->repository = $repository;
    }

    /**
     *  teams.
     *
     * @return array
     */
    public function teams()
    {

        $data = $this->repository->getByKeys('team');
        return $this->_success('请求成功', $data);
    }

    /**
     *  teams.
     *
     * @return array
     */
    public function positions()
    {

          $data = $this->repository->getByKeys('position');

        return $this->_success('请求成功', $data);
    }

    /**
     *  teams.
     *
     * @return array
     */
    public function place()
    {

        $data = $this->repository->getByKeys('place');

        return $this->_success('请求成功', $data);
    }

    public function about()
    {
        $data =  config('dictionary.about');;
        return $this->_success('请求成功', $data);
    }
}
